package com.example.entity;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.time.LocalDate;
import java.util.List;

/**
 * Serene Dream
 * 2025/9/8 21:17
 */

public class Employee {
    String name;
    String birthday;
    List<String> hobbies;

    public Employee() {
    }

    public Employee(String name, String birthday, List<String> hobbies) {
        this.name = name;
        this.birthday = birthday;
        this.hobbies = hobbies;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getBirthday() {
        return LocalDate.parse(birthday);
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public List<String> getHobbies() {
        return hobbies;
    }

    public void setHobbies(List<String> hobbies) {
        this.hobbies = hobbies;
    }
}
